﻿using System.ServiceModel;

namespace Silent.WCF.Base.Common
{
    public static class BindingFactory
    {
        public static NetTcpBinding DefaultTcpBinding
        {
            get
            {
                return new NetTcpBinding
                {
                    MaxReceivedMessageSize = 2147483647,
                    Security =
                    {
                        Mode = SecurityMode.None,
                        Message = { ClientCredentialType = MessageCredentialType.None },
                        Transport = { ClientCredentialType = TcpClientCredentialType.None }
                    }
                };
            }
        }
    }
}